package com.jy.oms.framework.asyn.task.model;

/**
 * @author liuquan
 */
public class TaskExecuteResultDto {

    /**
     * 任务是否执行成功，true是，false否
     */
    private boolean success;

    /**
     * 任务执行成功结果
     */
    private Object taskResult;

    public TaskExecuteResultDto(boolean success, Object taskResult) {
        this.success = success;
        this.taskResult = taskResult;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Object getTaskResult() {
        return taskResult;
    }

    public void setTaskResult(Object taskResult) {
        this.taskResult = taskResult;
    }
}
